package com.jierui.meter.frontend.mapper;

import com.jierui.meter.frontend.domain.DO.TgInfoDO;
import com.jierui.meter.frontend.domain.Param.TgInfoParam;
import com.jierui.meter.frontend.domain.Param.TgStatusParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TgInfoMapper {

    TgInfoDO selectByTgId(@Param("tgId") String tgId);

    List<TgInfoDO> selectNewTgByOrgNameLike(@Param("orgName") String orgName, @Param("tgStatus") String tgStatus,
                                            @Param("page") int page, @Param("size") int size);

    int selectNewTgByOrgNameLikeCount(@Param("orgName") String orgName, @Param("tgStatus") String tgStatus);

    List<TgInfoDO> selectTgInfoByParam(TgInfoParam param);

    List<TgInfoDO> selectTgNumByOrgNo7s(@Param("orgNo7s") List<String> orgNo7s);


    int selectTgInfoByParamCount(TgInfoParam param);

}
